casper.test.error("Hi, I'm an error");
casper.test.fail("Georges W. Bush");
casper.test.fail("Here goes a really long and expressive message", {name:'shortfacts'});
casper.test.formatMessage("fail test","fnot:20px");

casper.test.assertEquals(true, false);
require('utils').dump(casper.test.getFailures());
casper.test.done();

var failures = [];

casper.test.on("fail", function(failure) {
  failures.push(failure);
});

casper.test.assertEquals(true, true);
require('utils').dump(casper.test.getPasses());
casper.test.done();

var successes = [];

casper.test.on("success", function(success) {
  successes.push(success);
});